{% extends 'base_home.html'  %}
{% load static %}
{% load url from future %}
{% block content %}
    <div class="container">
      <div class="starter-template">
        <h1>Page News </h1>

          {% for new in news_list %}
           <div class="row">
                <div class=""><h4>{{ new.title }}</h4></div>
                <div class="description">{{ new.body|truncatechars:300|striptags }} <br/> Post date :{{  new.create_date }}</div>
                <div> <a class="btn btn-link" href="{% url 'news_detail_page' new.id %}"> Read more </a></div>
            </div>
          {% endfor %}

      </div>
    </div>
{% endblock %}